import Mock from "mockjs"
const Random = Mock.Random
let data = {
    name:Random.ctitle(),
    neirong:Random.cparagraph(),
    id: Random.id(),
    createTime:Random.datetime("yyyy-MM-dd HH:mm:ss"),
}
function getdatalist(num){
    return new Array(num).fill("").map(()=>{
        return  {
            name:Random.ctitle(),
            neirong:Random.cparagraph(),
            id: Random.id(),
            createTime:Random.datetime("yyyy-MM-dd HH:mm:ss"),
        }
    })
}

export default [
    {
        url:"/api/shoujian/",
        method:"get",
        response:(canshu)=>{
            return {
                code:200,
                data:getdatalist(20),
                success:true
            }
        }
    },
]